package com.boot.unity.api.wx.controller;


import com.boot.unity.api.wx.service.WxCameraService;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/wx/camera")
@Validated
public class WxCameraController {
    @Autowired
    private WxCameraService wxCameraService;


    @GetMapping("cameraDetail")
    public Object cameraDetail(String id){
        return wxCameraService.cameraDetail(id);
    }


    @GetMapping("schoolCanera")
    public Object schoolCanera(String regionId){
        return wxCameraService.schoolCanera(regionId);
    }
}
